﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<FriendTest.FriendService.UserData>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    主页
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="sidebar" float="left">
        <%="<img src=../../Content/"+Model.userName+".jpg align=\"left\" width=\"100\" alt=\"photo\"/>" %>
        <h2><%=Model.userName %></h2>
    </div>
    <div id="maincontent" float="left">
        <div id="publish">
        <%using (Ajax.BeginForm("PublishStatus",
                                new{id=Model.id},
                                new AjaxOptions{UpdateTargetId="published_content",
                                                InsertionMode=InsertionMode.Replace}
                               )){ %>
            <%=Html.TextBox("publish_content")%>
            <input type="submit" value="发布" />
        <%} %>
            <span id="published_content">no publish</span>
        
        </div>
        <div id="news_list">
        <h2>新鲜事</h2>
        <%Html.RenderAction("ShowNewsList", new { userid = Model.id });%>
        </div>
    </div>
</asp:Content>
